package com.battcn.service;

import com.battcn.mapper.UserInfoMapper;
import com.battcn.vo.UserInfo;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserInfoService {

    @Autowired
    UserInfoMapper userInfoMapper;

    public PageInfo<UserInfo> queryUserInfoForList() {
        return PageHelper.startPage(1, 20).doSelectPageInfo(() -> {
            this.userInfoMapper.selectAll();
        });

    }


}
